home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_00_hraildet.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
942b
|
59 lines
# Jedi Knight Missions Cog Script
#
# 00_HRAILDET.COG
#
# PROJECTILE SCRIPT - Homing Rail Det
#
# [RF]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
flags=0x240
symbols
message created
message timer
thing tDet local
thing tTarget local
end
# ========================================================================================
code
created:
tDet = GetSenderRef();
SetTimerEx(0.1, 1, tDet, 0);
SetTimerEx(0.3, 0, tDet, 0);
SetWeaponFlags(tDet, 0x0c);
return;
timer:
if (GetSenderID() == 0)
{
SetWeaponTarget(GetParam(0), GetThingUserData(GetParam(0)), 450.0);
}
else
if (GetSenderID() == 1)
{
tDet = GetParam(0);
if (GetThingUserData(tDet) >= 5000)
{
tTarget = GetThingUserData(tDet) - 5000;
SetThingUserData(tDet, tTarget);
SetWeaponFlags(tDet, 0x24020d);
SetLifeLeft(tDet, 10.0);
}
}
return;
end